package com.wanxi.control.service.impl;

import com.wanxi.control.dao.UserDao;
import com.wanxi.control.dao.impl.UserDaoImpl;
import com.wanxi.control.model.UserModel;
import com.wanxi.control.service.IuserService;

public class UserServiceImpl implements IuserService {
    @Override
    public String add(UserModel userModel) {
        UserDao userDao = new UserDaoImpl();
        UserModel model = userDao.findByUserName(userModel.getUserName());

        //如果数据库里面有用户名
        boolean isHave = model != null;//在数据库里查询是否有值
        return "error";
    }
}
